Home:ALL Converter>use pipenv -h, UnicodeDecodeError: 'utf-8'

use pipenv -h, UnicodeDecodeError: 'utf-8'

Ask Time:2018-11-24T11:39:18         Author:WangTanxu

Json Formatter

use pipenv -h and other commands like --venv -install, UnicodeDecodeError: 'utf-8', pipenv commands are error.And i can't find answers in other places.

F:\proc_py\pipEnv>pipenv -h
Traceback (most recent call last):
  File "e:\python3.6\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "e:\python3.6\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "E:\python3.6\Scripts\pipenv.exe\__main__.py", line 5, in <module>
  File "e:\python3.6\lib\site-packages\pipenv\__init__.py", line 47, in <module>
    from .cli import cli
  File "e:\python3.6\lib\site-packages\pipenv\cli\__init__.py", line 3, in <modu
le>
    from .command import cli
  File "e:\python3.6\lib\site-packages\pipenv\cli\command.py", line 7, in <modul
e>
    import crayons
  File "e:\python3.6\lib\site-packages\pipenv\patched\crayons.py", line 49, in <
module>
    is_powershell = "powershell" in shellingham.detect_shell()[0]
  File "e:\python3.6\lib\site-packages\pipenv\vendor\shellingham\__init__.py", l
ine 22, in detect_shell
    shell = get_shell(pid, max_depth=max_depth)
  File "e:\python3.6\lib\site-packages\pipenv\vendor\shellingham\nt.py", line 10
0, in get_shell
    processes = dict(_iter_process())
  File "e:\python3.6\lib\site-packages\pipenv\vendor\shellingham\nt.py", line 78
, in _iter_process
    info = {'executable': str(pe.szExeFile.decode('utf-8'))}
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 0: invalid
start byte

I do not know why, pipenv commands are error.And i can't find answers in other places.

Author:WangTanxu,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/53454959/use-pipenv-h-unicodedecodeerror-utf-8
yy